/*
 * =====================================================================================
 *
 *       Filename:  SocketOps.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2012-10-01
 *       Revision:  none
 *       Compiler:  cmake & gcc
 *
 *         Author:  ankjt
 *
 * =====================================================================================
 */

#ifndef __SOCKET_OPS_H__
#define __SOCKET_OPS_H__

#include "SocketDefines.h"

namespace SocketOps
{
    SOCKET CreateTCPFileDescriptor();
    bool Nonblocking(SOCKET fd);
    bool Blocking(SOCKET fd);
    bool DisableBuffering(SOCKET fd);
    bool EnableBuffering(SOCKET fd);
    bool SetRecvBufferSize(SOCKET fd, int iSize);
    bool SetSendBufferSize(SOCKET fd, int iSize);
    void CloseSocket(SOCKET fd);
    void ReuseAddr(SOCKET fd);
};

#endif

